// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/index'

// import 'assets/js/lazy'
import axios from 'axios'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import MetaInfo from 'vue-meta-info'

import { get, post } from 'assets/server/http'
import { posts, puts, deletes } from 'assets/server/https'
import 'assets/styles/global.styl'
import { Global, checkForm, emojiConver } from 'assets/js/mixin'
import { storeMixin } from 'utils/store'
import 'assets/icons/index.js'
import * as echarts from 'echarts'
import VueCropper from 'vue-cropper'
import uploader from 'vue-simple-uploader'

Vue.use(VueCropper)
window.echarts = echarts

// require('assets/mock')
Vue.use(ElementUI)
Vue.mixin(Global)
Vue.mixin(checkForm)
Vue.mixin(storeMixin)
Vue.mixin(emojiConver)
Vue.use(uploader)
Vue.prototype.get = get
Vue.prototype.post = post
Vue.prototype.posts = posts
Vue.prototype.puts = puts
Vue.prototype.deletes = deletes

window.eventBus = new Vue()
Vue.config.productionTip = false
Vue.config.devtools = true

Vue.prototype.$axios = axios
Vue.prototype.medBaseApi = 'http://saas.yuemia.com'
Vue.prototype.medEventApi = 'http://saas.yuemia.com'
Vue.config.devtools = true
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
